package org.ielts.domain.log;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.ielts.domain.base.Campus;

@Entity
@DiscriminatorValue("FirstRecord")
public class FirstRecordLog extends SchoolLog {
	public FirstRecordLog() {
		setLogType("FirstRecord");
	}

	@Override
	public String getLogType() {
		return "FirstRecord";
	}

	private String source;

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Campus getCampus() {
		return campus;
	}

	public void setCampus(Campus campus) {
		this.campus = campus;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	private Campus campus;
}
